package addressBook;

import java.util.Observable;

/**
 * The model of the address-book's main window.
 */
public class simpleWindowModel extends Observable {
	
	public void openNewContactWindow(contacts toContacts){
		newContactWindow me = new newContactWindow(toContacts);
    	me.main(null);
	}
	
	public void openSearchWindow(contacts toContacts){
		searchWindow me = new searchWindow(toContacts);
    	me.main(null);
	}
	
	public void removeContactWindow(contacts toContacts){
		removeContactWindow me = new removeContactWindow(toContacts);
		me.main(null);
	}
	
	void changed(){
		setChanged();
		notifyObservers();
	}
}
